8 a : Array[0..25] of integer;
\r
9 b : Array[0..25] of char;
\r
12 i,j, tempi : integer;
\r
20 while (lineas > 0) do
\r
23 for i := 1 to length(entrada) do
\r
25 entrada[i] := uppercase(entrada[i])[1];
\r
26 if ((integer(entrada[i]) >= 65) and (integer(entrada[i]) <= 90)) then
\r
28 inc(a[integer(entrada[i]) - 65], 1);
\r
31 lineas := lineas - 1;
\r
34 for j := i + 1 to 25 do
\r
45 else if a[i] = a[j] then
\r
47 if integer(b[i]) > integer(b[j]) then
\r
61 writeLn(b[i], ' ', a[i]);
\r